
<%
/*
 *   Copyright 2013 Leonardo Pimentel, nome2 SOBRENOME2
 *   <lpfw82@gmail.com><email2.com>
 *
 *   This file is part of XFD Validator.
 *
 *   XFD Validator is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   XFD Validator is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Lesser General Public License for more details.
 *
 *   You should have received a copy of the GNU Lesser General Public License,
 *   along with XFD Validator.  If not, see <http://www.gnu.org/licenses/>.
*/
%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Force IE6 into quirks mode with this comment tag-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>XML Validation Constraint</title>
<link rel=stylesheet type=text/css href="./css/bootstrap.css" />
<script type="text/javascript" src="js/validate.js"></script>
<script type="text/javascript" src="js/jquery-2.0.3.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
</head>
<body>
<%@ include file="Top_frame.jsp" %>
<ol class="breadcrumb">
  <li class="active">Validate XFD</li>
</ol>
		<div class="jumbotron">
			<form role="form" action="Show_results.jsp" id="validar" name="validar"
				method="post" enctype="multipart/form-data">
				<div class="form-group">
				<label>Choose a XML file:</label>
				<input id="file" type="file" name="file"/>
				</div>
				<div id="div1">
				<div class="form-group">
				<label for="xfd_name">Enter XFD name:</label>
				<input name="xfd_name" id="xfd_name" type="text" class="form-control"   value="XFD1" /> 
				<label for="context_path">Enter Context Path:</label>
				<input name="context_path" id="context_path" type="text" class="form-control"  value="bd / projet" /> 
				<label for="left_path">Enter Left Path: </label>
				<input name="left_path" id="left_path" type="text" class="form-control" value="fournisseur / fnom | fournisseur / composant / cnom" />
				<label for="left_equality_type">Enter type of equality associated with dependence (v or n with commas ex.'v,n,v'): </label>  	
			    <input name="left_equality_type"  id="left_equality_type" type="text" class="form-control" size="104" value="v,v" />
				<label for="right_path">Enter Right Path:</label>
				<input name="right_path" id="right_path" type="text" class="form-control" value="fournisseur / composant / prix" /> 
				<label for="right_equality_type">Enter type of equality associated with dependence (v or n): </label>
				<input name="right_equality_type" id="right_equality_type" type="text" class="form-control"  value="v" />
				</div>
				</div>
				<div id="div2"></div>
				<input type="submit" value="Validate!"
					onclick="this.form.target='_blank'; return show_results()" /> <input
					type="button" value="Add XFD" onClick="add()">
			</form>
		</div>
	</div>
</body>
</html>
